const express = require("express");
const router = express.Router();
const JobCtrl = require("../controller/job");

router.post("/job", JobCtrl.addJob);
router.post("/jobFilter", JobCtrl.jobFilter);
router.get("/job", JobCtrl.getJob);
router.get("/job/:id", JobCtrl.getJobById);
router.delete("/job/:id", JobCtrl.deleteJob);
router.post("/job/:id", JobCtrl.updateJobParams);
router.post("/jobParams/:id", JobCtrl.updateJobParams);
router.get("/jobSalary", JobCtrl.getJobSalary);
router.get("/jobTags", JobCtrl.getJobTags);
router.get("/jobExperience", JobCtrl.getJobExperience);
router.get("/jobLocation", JobCtrl.getJobLocation);
router.get("/xuelis", JobCtrl.getXuelis);
router.get("/jobTypes", JobCtrl.getJobTypes);

module.exports = router;
